﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CIRDiagnoseDevice
{
    public partial class IPSet : Form
    {
        private string ipStr;
        private int portNum;

        public string IPStr
        {
            get { return ipStr; }
        }

        public int PortNum
        {
            get { return portNum; }
        }

        public IPSet()
        {
            InitializeComponent();
            textBox1.Focus();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text !="")
            {
                ipStr = textBox1.Text;
            }
            if(textBox2.Text != "")
            {
               portNum = int.Parse(textBox2.Text);
            }
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
